angular.module('module.advertisement', [
        'service.advertisement'
    ])
    .config(['$stateProvider', function ($stateProvider) {
        $stateProvider
            .state('adlist', {
                url: "/adlist",
                templateUrl: advertisement_view_url + "list.html",
                controller: 'AdListController',
                controllerAs: 'vm'
            })
            .state('addetail', {
                url: "/addetail/:id",
                templateUrl: advertisement_view_url + "detail.html",
                controller: 'AdDetailController',
                controllerAs: 'vm'
            })
            .state('addemur', {
                url: "/addemur/:adid",
                templateUrl: advertisement_view_url + "demurrer.html",
                controller: 'AdDemurController',
                controllerAs: 'vm'
            })
    }]);